<%-- 
    Document   : modificarTarea
    Created on : 29/06/2014, 18:46:49
    Author     : Rodriguez
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
        <title>Modificar Tarea</title>
    </head>
    <body>
        <div align="center">
            <h1>Gestión de tareas - Modificar</h1>
            <hr width="80%">
            <logic:messagesPresent>
                <h3><font color="red"><bean:message key="modificar.error.header" /></font></h3>
                <ul>
                    <html:errors />
                </ul>
            </logic:messagesPresent>
                <p>Ingrese los nuevos campos de la tarea que seleccinó para modificar:</p>
            <html:form action="/modificarTarea" acceptCharset="ISO-8859-1">
                <table border="1" width="600">
                    <tr>
                        <td align="center" width="300">Descripción</td>
                        <td height="50"><html:textarea property="descripcion" rows="3" cols="41" style="max-width:300px;max-height:50px;" value=""/></td>                    
                    </tr>
                    <tr>
                        <td align="center">Fecha (dd-mm-aaaa)</td>
                        <td align="center"><html:text property="dia" maxlength="2" size="2" value="01"/>-
                            <html:text property="mes" maxlength="2" size="2" value="01"/>-
                            <html:text property="año" maxlength="4" size="4" value="2014" /></td>                    
                    </tr>
                    <tr>
                        <td align="center">Hora de vencimiento (00-23 hs.)</td>
                        <td align="center"><html:text property="hora" maxlength="2" size="2" value="00"/></td>                    
                    </tr>
                    <tr>
                        <td align="center">Porcentaje realizado (0-99%)</td>
                        <td align="center"><html:text property="porcentaje" maxlength="2" size="2" value="0"/></td>                    
                    </tr>
                    <tr>
                        <td align="center">Visibilidad</td>
                        <td align="center">                            
                            <html:radio property="visibilidad" value="pública">Pública</html:radio><br>
                            <html:radio property="visibilidad" value="privada">Privada</html:radio>
                    </td>                    
                    </tr>
                </table>
                    <br>
                <button type="submit" class="btn btn-primary center-block">Modificar</button>
            </html:form>         
        </div>
    </body>
</html>